<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>src/var.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="karamelodoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="karamelo_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Karamelo_logo.png"/></td>
    <td id="projectalign" style="padding-left: 0.5em;">
    <div id="projectbrief">Parallel Material Point Method Simulator - 5b95c290</div>
    </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">var.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
Include dependency graph for var.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="var_8cpp__incl.png" border="0" usemap="#src_2var_8cpp" alt=""/></div>
<map name="src_2var_8cpp" id="src_2var_8cpp">
<area shape="rect" id="node2" href="mpm_8h.html" title="mpm.h" alt="" coords="305,229,367,256"/>
<area shape="rect" id="node10" href="input_8h.html" title="input.h" alt="" coords="508,80,569,107"/>
<area shape="rect" id="node13" href="var_8h.html" title="var.h" alt="" coords="604,155,655,181"/>
<area shape="rect" id="node11" href="pointers_8h.html" title="pointers.h" alt="" coords="395,155,474,181"/>
<area shape="rect" id="node12" href="mpmtype_8h.html" title="mpmtype.h" alt="" coords="391,229,478,256"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a9c7b069fee3c8184e14a7de8e5da2dc6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a9c7b069fee3c8184e14a7de8e5da2dc6">PRECISION</a>&#160;&#160;&#160;15</td></tr>
<tr class="separator:a9c7b069fee3c8184e14a7de8e5da2dc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0ead366c8699abaeac642df1c0546a59"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a0ead366c8699abaeac642df1c0546a59"><td class="memTemplItemLeft" align="right" valign="top">std::string&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a0ead366c8699abaeac642df1c0546a59">to_string_with_precision</a> (const T a_value)</td></tr>
<tr class="separator:a0ead366c8699abaeac642df1c0546a59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a162df5e3789f95bea666ae5ecb543eed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a162df5e3789f95bea666ae5ecb543eed">powv</a> (int base, <a class="el" href="classVar.html">Var</a> p)</td></tr>
<tr class="separator:a162df5e3789f95bea666ae5ecb543eed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09edc1df3afbe25adc76a524697f4d34"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a09edc1df3afbe25adc76a524697f4d34">expv</a> (<a class="el" href="classVar.html">Var</a> x)</td></tr>
<tr class="separator:a09edc1df3afbe25adc76a524697f4d34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f4ba543b20d107f531a1de0b7576e88"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a2f4ba543b20d107f531a1de0b7576e88">sqrtv</a> (<a class="el" href="classVar.html">Var</a> x)</td></tr>
<tr class="separator:a2f4ba543b20d107f531a1de0b7576e88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73bc9483c424c6b4a704d68d20acc29c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a73bc9483c424c6b4a704d68d20acc29c">cosv</a> (<a class="el" href="classVar.html">Var</a> x)</td></tr>
<tr class="separator:a73bc9483c424c6b4a704d68d20acc29c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a785129f53e41103ec0caafe021780449"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a785129f53e41103ec0caafe021780449">sinv</a> (<a class="el" href="classVar.html">Var</a> x)</td></tr>
<tr class="separator:a785129f53e41103ec0caafe021780449"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85d0b7ebe771e4a7ddbfd422de18fccd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a85d0b7ebe771e4a7ddbfd422de18fccd">tanv</a> (<a class="el" href="classVar.html">Var</a> x)</td></tr>
<tr class="separator:a85d0b7ebe771e4a7ddbfd422de18fccd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d7e9421d4b9f715ecd5f3607d5649dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a4d7e9421d4b9f715ecd5f3607d5649dc">logv</a> (<a class="el" href="classVar.html">Var</a> x)</td></tr>
<tr class="separator:a4d7e9421d4b9f715ecd5f3607d5649dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c762e4cb805708167869ef1680cc714"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVar.html">Var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="var_8cpp.html#a4c762e4cb805708167869ef1680cc714">atan2v</a> (<a class="el" href="classVar.html">Var</a> x, <a class="el" href="classVar.html">Var</a> y)</td></tr>
<tr class="separator:a4c762e4cb805708167869ef1680cc714"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a9c7b069fee3c8184e14a7de8e5da2dc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c7b069fee3c8184e14a7de8e5da2dc6">&#9670;&nbsp;</a></span>PRECISION</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PRECISION&#160;&#160;&#160;15</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a4c762e4cb805708167869ef1680cc714"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c762e4cb805708167869ef1680cc714">&#9670;&nbsp;</a></span>atan2v()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> atan2v </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a73bc9483c424c6b4a704d68d20acc29c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73bc9483c424c6b4a704d68d20acc29c">&#9670;&nbsp;</a></span>cosv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> cosv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a09edc1df3afbe25adc76a524697f4d34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09edc1df3afbe25adc76a524697f4d34">&#9670;&nbsp;</a></span>expv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> expv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4d7e9421d4b9f715ecd5f3607d5649dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d7e9421d4b9f715ecd5f3607d5649dc">&#9670;&nbsp;</a></span>logv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> logv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a162df5e3789f95bea666ae5ecb543eed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a162df5e3789f95bea666ae5ecb543eed">&#9670;&nbsp;</a></span>powv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> powv </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>p</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a785129f53e41103ec0caafe021780449"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a785129f53e41103ec0caafe021780449">&#9670;&nbsp;</a></span>sinv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> sinv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2f4ba543b20d107f531a1de0b7576e88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f4ba543b20d107f531a1de0b7576e88">&#9670;&nbsp;</a></span>sqrtv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> sqrtv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a85d0b7ebe771e4a7ddbfd422de18fccd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85d0b7ebe771e4a7ddbfd422de18fccd">&#9670;&nbsp;</a></span>tanv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVar.html">Var</a> tanv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classVar.html">Var</a>&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0ead366c8699abaeac642df1c0546a59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ead366c8699abaeac642df1c0546a59">&#9670;&nbsp;</a></span>to_string_with_precision()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::string to_string_with_precision </td>
          <td>(</td>
          <td class="paramtype">const T&#160;</td>
          <td class="paramname"><em>a_value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<!-- Matomo -->
<script type="text/javascript">
  var _paq = _paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//stats.sylphide-consulting.com/matomo/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '20']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//stats.sylphide-consulting.com/matomo/piwik.php?idsite=20&rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</body>
</html>
